package org.example.learningplanassistant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 私信消息表
 * </p>
 *
 * @author gcbsh
 * @since 2025-03-25
 */
@Getter
@Setter
@TableName("messages")
public class Messages implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发送者ID
     */
    @TableField("sender_id")
    private Integer senderId;

    /**
     * 接收者ID
     */
    @TableField("receiver_id")
    private Integer receiverId;

    /**
     * 消息内容
     */
    @TableField("content")
    private String content;

    /**
     * 是否已读，默认为未读
     */
    @TableField("is_read")
    private Byte isRead;
}
